package ua.kharkov.khpi.tarasenko.bach.core.user;

import java.io.Serializable;

/**
 * User's info(settings) bean. 
 * 
 * @author oleksandr
 *
 */
public class UserSettingsBean implements Serializable{
	private static final long serialVersionUID = 7854131692037387336L;

	private int id;
	private String firstName;
	private String lastName;
	private String phone;
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public String getFirstName() {
		return firstName;
	}
	
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	
	public String getLastName() {
		return lastName;
	}
	
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Id = ");
		builder.append(this.id);
		builder.append("\n\t");
		builder.append("First name = ");
		builder.append(this.firstName);
		builder.append("\n\t");
		builder.append("Last name = ");
		builder.append(this.lastName);
		builder.append("\n\t");
		builder.append("Phone = ");
		builder.append(this.phone);
		builder.append("\n\t");

		return builder.toString();
	}
}
